package com.lcgs.manage.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lcgs.common.annotation.Excel;
import com.lcgs.common.core.domain.BaseEntity;

/**
 * 货单管理对象 tb_order
 * 
 * @author lc
 * @date 2025-09-20
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 合作商家ID */
    @Excel(name = "合作商家ID")
    private Long merchantId;

    /** 合作商家名称 */
    @Excel(name = "合作商家名称")
    private String merchantName;

    /** 商家地址 */
    @Excel(name = "商家地址")
    private String merchantAddress;

    /** 商家电话 */
    @Excel(name = "商家电话")
    private String merchantPhone;

    /** 订单状态 (1:待处理, 2:已配单, 3:配送中, 4:已送达，0:已取消) */
    @Excel(name = "订单状态 (1:待处理, 2:已配单, 3:配送中, 4:已送达，0:已取消)")
    private Integer status;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 员工ID */
    @Excel(name = "员工ID")
    private Long empId;

    /** 所属区域 */
    @Excel(name = "所属区域")
    private Long regionId;

    /** 订单详情信息 */
    private List<TbOrderDetail> tbOrderDetailList;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }

    public void setMerchantName(String merchantName) 
    {
        this.merchantName = merchantName;
    }

    public String getMerchantName() 
    {
        return merchantName;
    }

    public void setMerchantAddress(String merchantAddress) 
    {
        this.merchantAddress = merchantAddress;
    }

    public String getMerchantAddress() 
    {
        return merchantAddress;
    }

    public void setMerchantPhone(String merchantPhone) 
    {
        this.merchantPhone = merchantPhone;
    }

    public String getMerchantPhone() 
    {
        return merchantPhone;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setEmpId(Long empId) 
    {
        this.empId = empId;
    }

    public Long getEmpId() 
    {
        return empId;
    }

    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }

    public List<TbOrderDetail> getTbOrderDetailList()
    {
        return tbOrderDetailList;
    }

    public void setTbOrderDetailList(List<TbOrderDetail> tbOrderDetailList)
    {
        this.tbOrderDetailList = tbOrderDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("merchantId", getMerchantId())
            .append("merchantName", getMerchantName())
            .append("merchantAddress", getMerchantAddress())
            .append("merchantPhone", getMerchantPhone())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("orderNumber", getOrderNumber())
            .append("empId", getEmpId())
            .append("regionId", getRegionId())
            .append("tbOrderDetailList", getTbOrderDetailList())
            .toString();
    }
}
